package me.minecraft.plugin.itemrecycle.command;

import me.minecraft.plugin.itemrecycle.config.MainConfig;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * @author langle__
 * @version 1.0
 */
public class ReloadCommand extends SubCommand {

    @Override
    public @NotNull String getName() {
        return "reload";
    }

    @Override
    public @Nullable String getPermission() {
        return "ItemRecycle.command.reload";
    }

    @Override
    public void onCommand(CommandSender sender, String[] args) {
        MainConfig.INSTANCE.load();
        sender.sendMessage("配置重载完成！");
    }

}
